import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

import user from "./modules/user.js";
import app from "./modules/app.js";
import lanlord from "./modules/lanlord.js";
import goods from "./modules/goods.js";
import feed from "./modules/feed.js";
import bankInfo from "./modules/bankInfo";
import tim from "./modules/tim";

console.log(app);
const store = new Vuex.Store({
  modules: {
    user,
    tim,
    app,
    lanlord,
    goods,
    feed,
    bankInfo,
  },
  state: {},
  mutations: {},
  getters: {
    hasLogin: (state) => state.user.hasLogin,
    city: (state) => state.app.city,
  },
});
console.log(store);
export default store;
